<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Application_Model_ProductCategory
 *
 * @author Eugene
 */
class Application_Model_ProductCategory extends Application_Model_Abstract
{

	/**
	 * @var int
	 */
	protected $_productId;

	/**
	 * @var int
	 */
	protected $_categoryId;

	/**
	 *
	 * @return array
	 */
	public function toArray()
	{
		return array(
			'productId' => $this->getProductId(),
			'ncategoryId' => $this->getCategoryId(),
		);
	}

	/**
	 *
	 * @param int $productId
	 * @return Application_Model_ProductCategory
	 */
	public function setProductId($productId)
	{
		$this->_productId = (int) $productId;

		return $this;
	}

	/**
	 *
	 * @return int
	 */
	public function getProductId()
	{
		return $this->_productId;
	}

	/**
	 *
	 * @param int $categoryId
	 * @return Application_Model_ProductCategory
	 */
	public function setCategoryId($categoryId)
	{
		$this->_categoryId = (int) $categoryId;

		return $this;
	}

	/**
	 *
	 * @return int
	 */
	public function getCategoryId()
	{
		return $this->_categoryId;
	}

}